﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="QuanLyHoSoBenhNhan._default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 214px;
        }
        .style2
        {
            width: 429px;
        }
    </style>
</head>
<body style="width: 1024px; margin: 0px auto;">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="width: 800px; margin: 0px auto;">
                <table style="width: 100%;">
                    <tr>
                        <td class="style1" align="right">
                            <asp:Label ID="Label1" runat="server" Text="Họ Tên"></asp:Label>
                            &nbsp;
                        </td>
                        <td class="style2">
                            <asp:TextBox ID="txtHoTen" runat="server" Width="412px"></asp:TextBox>&nbsp;
                        </td>
                        <td>
                            &nbsp;
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHoTen"
                                ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1" align="right">
                            <asp:Label ID="lblDiaChi" runat="server" Text="Địa chỉ"></asp:Label>&nbsp;
                        </td>
                        <td class="style2">
                            <asp:TextBox ID="txtDiaChi" runat="server" Width="412px"></asp:TextBox>&nbsp; &nbsp;
                        </td>
                        <td>
                           
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="center">
                            <asp:Button ID="btnTimKiem" runat="server" Text="Tìm kiếm" Height="58px" Width="160px"
                                OnClick="btnTimKiem_Click" />
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
            <hr />
            <div style="margin: 0px auto; width:800px">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                    CellPadding="3" ForeColor="Black" GridLines="Vertical" style="margin-top: 0px" 
                   >
                    <AlternatingRowStyle BackColor="#CCCCCC" />
                    <Columns>
                        <asp:TemplateField HeaderText="STT">
                            <EditItemTemplate>
                                <asp:Label ID="Label1" runat="server"><%# Eval("SOHS") %></asp:Label>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="SOHS" HeaderText="Số hồ sơ" ReadOnly="True" SortExpression="SOHS" />
                        <asp:BoundField DataField="HO_TEN" HeaderText="Họ tên" ReadOnly="True" />
                        <asp:BoundField DataField="DIA_CHI" HeaderText="Địa chỉ" ReadOnly="True" />
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="btnChiTiet" runat="server" Text="Chi tiết bệnh nhân" 
                                    CommandArgument='<%# Eval("ID") %>' oncommand="btnChiTiet_Command1" 
                                   />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
